﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CodeGenLib;

namespace CodeGen
{
    public partial class PreviewPanel : UserControl, CodeGenLib.View
    {
        public PreviewPanel()
        {
            InitializeComponent();
        }

        public void UpdateCodes(Codes codes)
        {
            String text = "";
            foreach (String line in codes.Lines)
            {
                text += line;
                text += Environment.NewLine;
            }
            this.codeTextBox.Text = text;
        }

        public void UpdateInclude(int index, String include)
        {
        }
    }
}
